package cn.fzkj.framework.annotation;

import cn.fzkj.common.constant.AuthCons;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/** 自定义注解，用于api接口鉴权. */
@Target(value = {ElementType.METHOD, ElementType.TYPE})
@Retention(value = RetentionPolicy.RUNTIME)
public @interface Authentication {
    /** 默认的用户访问权限是无权限. */
    AuthCons role() default AuthCons.USER;
}
